package hwOne1;

import edu.princeton.cs.algs4.StdOut;

/**
 * 作业 1.1.9
 */
public class TransIntBinary {
    public static void main(String[] args) {
        int N = 5;
        String s = "";
        for (int i = N; i > 0; i /= 2) {
            s = (i % 2) + s;

        }
        StdOut.println(s);
    }
}
